#!usr/bin/env python  
# -*- coding:utf-8 _*-
""" 
@author:robot
@file: async_run_work_01.py 
@version:
@time: 2023/04/13 
"""
import asyncio

from geekPythonCore.util import async_run_time


async def worker_1():
    print('worker_1 start')
    await asyncio.sleep(1)
    print('worker_1 done')


async def worker_2():
    print('worker_2 start')
    await asyncio.sleep(1)
    print('worker_2 done')


async def main():
    print('before await')
    await worker_1()
    print('await worker_1')
    await worker_2()
    print('await worker_2')


async_run_time(main)
